package com.yunpay.model;

import java.io.Serializable;

/**
 * @Author: Tony.Wang
 * @Date: 12-3-20
 * @Time: 下午11:05
 * @Description: 订单归属地信息
 */
public class Area implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2288147595596517540L;
	/**
	 * 所属运营商 0：移动  1：联通  2：电信
	 */
	private Integer	provider_id;
	/**
	 * 所属省份ID
	 */
	private Integer	province_id;
	/**
	 * 所属城市ID
	 */
	private Integer	city_id;
     /**
      * 手机号码
      */
	private String	phone;
	/**
	 * 短信中心号
	 */
	private String	smsp;
	/**
	 * 订单IP地址
	 */
	private String	ip;
	/**
	 * 用户IMSI串号
	 */
	private String	imsi;
	/**
	 * 获取级别  1:手机号码  2：根据ICCID   3：短信中心与号段库获取  4.根据IMSI    5:ip判断    6：未知  7：短信中心库
	 */
	private Integer		phone_channel;
	
	/**
	 * iccid
	 */
	private String	iccid;
	
	private String city;
	
	private String province;
	
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public Integer getProvider_id() {
		return provider_id;
	}

	public void setProvider_id(Integer provider_id) {
		this.provider_id = provider_id;
	}

	public Integer getProvince_id() {
		return province_id;
	}

	public void setProvince_id(Integer province_id) {
		this.province_id = province_id;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getSmsp() {
		return smsp;
	}

	public void setSmsp(String smsp) {
		this.smsp = smsp;
	}

	public Integer getCity_id() {
		return city_id;
	}

	public void setCity_id(Integer city_id) {
		this.city_id = city_id;
	}

	public String getImsi() {
		return imsi;
	}

	public void setImsi(String imsi) {
		this.imsi = imsi;
	}


	public Integer getPhone_channel() {
		return phone_channel;
	}

	public void setPhone_channel(Integer phone_channel) {
		this.phone_channel = phone_channel;
	}

	public String getIccid() {
		return iccid;
	}

	public void setIccid(String iccid) {
		this.iccid = iccid;
	}

	public String getAreaType() {
		return "";
	}

	public Integer getAreaId() {
		if (null != city_id) {
			return city_id;
		} else {
			return province_id;
		}
	}

	@Override
	public String toString() {
		return "Area [provider_id=" + provider_id + ", province_id=" + province_id + ", city_id=" + city_id + ", phone="
				+ phone + ", smsp=" + smsp + ", ip=" + ip + ", imsi=" + imsi + ", phone_channel=" + phone_channel
				+ ", iccid=" + iccid + "]";
	}
	
}
